#include <stdio.h>
#include <stdlib.h>

int main()
{
char *warning1="this is";
char warning2[50]={0};
char *warning3;
int count=5;
printf("%s %d\n",warning1,count);
warning3=new char [sprintf(0,"%s %d",warning1,count)];
sprintf(warning3,"%s %d",warning1,count);
printf("%s",warning2);
return 0;
}

